#include "StdAfx.h"
#include "ExplotionEmitter.h"

const float PI = 3.14159265358979323846f;
#define random()	((rand () & 0x7fff) / ((float)0x7fff))
#define crandom()	(2.0 * (random() - 0.5))

ExplotionEmitter::ExplotionEmitter(void)
{
}

ExplotionEmitter::~ExplotionEmitter(void)
{
}

/** Calculate Jitter Factor */
void ExplotionEmitter::CalculateJitter( Particle &p, Vector2f &vel )
{
    float speed = 1.0f;
    p.velocity.x = sin( crandom() ) * speed;
    p.velocity.y = sin( crandom() ) * speed;
}